package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng
 * @since 2018-08-23
 */
@TableName("sys_car")
public class Car extends Model<Car> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 出车时间
     */
    private Date cometime;
    /**
     * 回车时间
     */
    private Date gotime;
    /**
     * 用车单位
     */
    private String unit;
    /**
     * 事由
     */
    private String reason;
    /**
     * 车号
     */
    private String number;
    private String jiashi;
    /**
     * 路线
     */
    private String road;
    /**
     * 用车人
     */
    private String people;
    /**
     * 联系电话
     */
    private String phone;
    /**
     * 批准人
     */
    private String approval;
    /**
     * 审批状态
     */
    private Integer status;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getCometime() {
        return cometime;
    }

    public void setCometime(Date cometime) {
        this.cometime = cometime;
    }

    public Date getGotime() {
        return gotime;
    }

    public void setGotime(Date gotime) {
        this.gotime = gotime;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getJiashi() {
        return jiashi;
    }

    public void setJiashi(String jiashi) {
        this.jiashi = jiashi;
    }

    public String getRoad() {
        return road;
    }

    public void setRoad(String road) {
        this.road = road;
    }

    public String getPeople() {
        return people;
    }

    public void setPeople(String people) {
        this.people = people;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getApproval() {
        return approval;
    }

    public void setApproval(String approval) {
        this.approval = approval;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Car{" +
        "id=" + id +
        ", cometime=" + cometime +
        ", gotime=" + gotime +
        ", unit=" + unit +
        ", reason=" + reason +
        ", number=" + number +
        ", jiashi=" + jiashi +
        ", road=" + road +
        ", people=" + people +
        ", phone=" + phone +
        ", approval=" + approval +
        ", status=" + status +
        "}";
    }
}
